import { http } from "@/util/request/index";

// 已领取的优惠券列表
export const couponList = () => {
  return http.get("/api/sale/coupons/user/");
};

// 待领取的优惠券列表
export const notTakeCouponList = () => {
  return http.get("/api/sale/coupons/");
};

// 领取优惠券
export const takeCoupon = (id) => {
  return http.post(`/api/sale/coupons/${id}/take/`);
};
